import request from '@/utils/request'

export function getDictionary(data) {
  return request({
    url: '/pub/dictionary/childById',
    method: 'post',
    data
  })
}

export function getProv() {
  return request({
    url: '/pub/administrative/provinceAll',
    method: 'get'
  })
}

export function getCity(data) {
  return request({
    url: '/pub/administrative/cityByCode',
    method: 'post',
    data
  })
}

export function getDist(data) {
  return request({
    url: '/pub/administrative/distByCode',
    method: 'post',
    data
  })
}
